package com.jack.cms.oss.service;

import org.springframework.web.multipart.MultipartFile;

import com.qiniu.storage.model.FileListing;

public interface OssService {
	
	/**
	 * 上传文件返回文件oss名称
	 * @param fileUpLoad
	 * @return
	 * @throws Exception
	 */
	String save(MultipartFile fileUpLoad) throws Exception;
	/**
	 * 获取文件的列表
	 * @param marker
	 * @param count
	 * @return
	 * @throws Exception
	 */
	FileListing list(String marker, int count) throws Exception;

	/**
	 * 获取文件的URL地址
	 * @param fileName
	 * @return
	 * @throws Exception
	 */
	String getUrl(String fileName) throws Exception;
}
